
function TimeChange(time) {
    var date = new Date(time);
    var y = date.getFullYear();
    var m = date.getMonth() + 1;
    // m = m < 10 ? ('0' + m) : m;
    var d = date.getDate();
    // d = d < 10 ? ('0' + d) : d;
    // var h = date.getHours();
    // var minute = date.getMinutes();
    // minute = minute < 10 ? ('0' + minute) : minute;
    var week = date.getDay()
    let weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]
    let times = y + '年' + m + '月' + d + '日' +'/'+ weekDay[week];
    return times
}

export default TimeChange